/*
 * create:2016年4月24日 上午12:14:30
 * author:wangds  
 */
package com.cxkj.shop.utils;

import java.util.Collection;
import java.util.Map;

import com.cxkj.shop.model.timelimitpay.TimeLimitPay;

/**
 * .
 * 
 * @author wangds
 *
 */
public abstract class LimitPayUtils extends AbstractBusinessUtils {

  public static boolean createTimeLimitPayWithMap(Map<String, Object> map) {
    return execUpdateSql("insLimitpayMap", map);
  }

  public static boolean createTimeLimitPay(TimeLimitPay entity) {
    return execUpdateSql("insLimitpay", entity);
  }

  public static boolean deleteTimeLimitPay(int timelimitPayId) {
    return execUpdateSql("delTimelinepay", timelimitPayId);
  }

  protected static boolean clearTimeLimitPay(int id) {
    return execUpdateSql("clearTimelinepay", id);
  }

  public static Collection<TimeLimitPay> selectActiveTimeLimitPayList() {
    return execSelectList("selActiveTimeLimitPay", null);
  }

  /**
   * .
   * @author wangds 2016年4月26日 上午11:06:31.
   * @param timelimitpayId
   * @return
   */
  public static TimeLimitPay seleTimeLimitPayById(int timelimitpayId) {
    return execSelectOne("selTimelimitPayById", timelimitpayId);
  }
}
